package blog.enums;

import blog.router.impl.BlogContentRouter;

public enum RouterType {
  BLOG_CONTENT(BlogContentRouter.class.getName(),"博文相关路由");

  private final String className;
  private final String classDescribe;

  RouterType(String className, String classDescribe){
    this.className = className;
    this.classDescribe = classDescribe;
  }

  public static RouterType getByClassName(String className){
    for (RouterType value : values()) {
      if(value.className.equals(className)){
        return value;
      }
    }
    return null;
  }

}
